import request from '../utils/request';
import Qs from 'qs';
export const fetchData = query => {
    return request({
        url: '/bill/list',
        method: 'get',
        params: query
    });
};

export const fetchRiskFrontBackData = params => {
    return request({
        url: '/bill/detail',
        method: 'GET',
        params
    })
}

export const login = (data) => {
    return request({
        url: '/user/login',
        method: 'POST',
        data: Qs.stringify(data)
    })
}

export const getProductMaterial = (params) => {
    return request({
        url: 'mmrp/find/list/station/plan',
        method: 'GET',
        params
    })
}

export const getProductManage = (params) => {
    return request({
        url: 'mb/find/list',
        method: 'GET',
        params
    })
}
